extern worldrender<updater_different> trr;
//events:
enum
{
	event_none,
	event_stop			= VK_F1,
	event_accer			= VK_SPACE,
	event_brake			= VK_F2,
	event_gear_up		= VK_UP,
	event_gear_down		= VK_DOWN,
	event_steer_left	= VK_LEFT,
	event_steer_right	= VK_RIGHT,
};


int checkevent(int);
void initializeengine();
void initializeworld();
typedef int (* tcurrentstage)();
extern tcurrentstage currentstage;